package com.qf.swagger2204.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

@JsonInclude(value= JsonInclude.Include.NON_NULL)
@TableName("candidate")
public class Candidate {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer candidateId;
    @TableField(value = "name")
    private String candidateName;
    @TableField(value = "vote_num")
    private Integer totalnum;

}
